﻿using System.Net.DnsToolkit.Packet;
using System.Net.DnsToolkit.Serializer.Stream.Extension;
using System.Net.DnsToolkit.Packet.Busy;

namespace System.Net.DnsToolkit.Bastard.PacketGenerator {
    /// <summary>
    /// Packet's fields should be zero
    /// </summary>
    public class EmptyPacket : IPacketGenerator {

        /// <summary>
        /// Empty message
        /// </summary>
        /// <returns></returns>
        public byte[] GetBytes() {
            return GetMessage().GetBytes();
        }

        public IMessage GetMessage() {
            var message = new Message();
            return message;
        }
    }
}
